package com.gnerv.sylvanas.business.manage.model.dto;

import com.gnerv.sylvanas.business.manage.model.bo.ApiBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Gnerv LiGen
 */
@Data
public class ApiUpdateDTO {

    private String groupUkId;
    private String ukId;
    private String name;
    private String uri;
    private String type;
    private String authority;
    private String status;
    private Integer sort;

    public ApiBO toApiBO() {
        ApiBO apiBO = new ApiBO();
        BeanUtils.copyProperties(this, apiBO);
        return apiBO;
    }

}